import Vue from 'vue'
// import Vuex from 'vuex'
import Vuex from './Vuex.js'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    msg:"hello"
  },
  getters:{
    msgRes(state){
      return "结果是："+state.msg
    }
  },
  mutations: {
    add(state,payload){
      state.msg = payload
    }
  },
  actions: {
  },
  modules: {
  }
})
